// 定义活动状态枚举
import { CustomEnum } from "@/enums";

export const ACTIVITY_STATUS_ENUM: CustomEnum<number> = {
  PENDING: {
    value: 1,
    label: "审核中",
  },
  REJECTED: {
    value: 2,
    label: "审核不通过",
  },
  NOT_STARTED: {
    value: 3,
    label: "未开始",
  },
  ONGOING: {
    value: 4,
    label: "进行中",
  },
  COMPLETED: {
    value: 5,
    label: "已结束",
  },
};
/**
 * 活动平台枚举
 */
export const ACTIVITY_PLATFORM_ENUM: CustomEnum<number> = {
  PLATFORM: {
    value: 1,
    label: "平台端",
  },
  MERCHANT: {
    value: 2,
    label: "商户端",
  },
};

export const ACTIVITY_STATUS_MAP = {
  [ACTIVITY_STATUS_ENUM.PENDING.value]: "info",
  [ACTIVITY_STATUS_ENUM.REJECTED.value]: "danger",
  [ACTIVITY_STATUS_ENUM.NOT_STARTED.value]: "primary",
  [ACTIVITY_STATUS_ENUM.ONGOING.value]: "success",
  [ACTIVITY_STATUS_ENUM.COMPLETED.value]: "info",
};
